package com.springcloud.platform.service;

import com.springcloud.platform.bean.Product;
import com.springcloud.platform.respository.ProductRepository;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductService {

    @Resource
    public ProductRepository repository;

    public Product save(Product product) {
        return repository.save(product);
    }

    public void test(){
        System.out.println("=====");
    }
}
